.movieDetailPage {
  min-height: 100vh;
  background-color: #f5f5f5;
}


/* 页面内容区域 */
.content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 返回按钮 */
.backButton {
  margin-bottom: 24px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  transition: all 0.3s ease;

  &:hover {
    border-color: #1890ff;
    color: #1890ff;
    background-color: #fff;
  }
}

/* 加载状态容器 */
.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  background-color: #fff;
  border-radius: 8px;
}

/* 空状态容器 */
.emptyContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 600px;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
}

/* 电影基本信息区 */
.movieHeader {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

/* 电影海报 */
.movieCover {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .coverImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
}

/* 电影信息区 */
.movieInfo {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 标题区域 */
.titleSection {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.movieTitle {
  margin-bottom: 8px !important;
  font-weight: 700;
  color: #333;
}

.originalTitle {
  font-size: 16px;
  font-weight: 400;
}

/* 评分区域 */
.ratingSection {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  padding: 12px 20px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ratingValue {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.starIcon {
  color: #fff;
  margin-right: 4px;
}

.ratingLabel {
  font-size: 14px;
  opacity: 0.9;
}

/* 分隔线 */
.divider {
  margin: 24px 0;
}

/* 详细信息区域 */
.detailSection {
  margin-bottom: 24px;
}

.detailItem {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.8;
}

/* 操作按钮区域 */
.actionButtons {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.downloadButton {
  background-color: #52c41a;
  border-color: #52c41a;
  transition: none;
  
  &:hover {
    background-color: #52c41a !important;
    border-color: #52c41a !important;
    color: #fff !important;
  }
}

.playButton {
  background-color: #1890ff;
  border-color: #1890ff;
  color: #fff;
  transition: none;
  
  &:hover {
    background-color: #1890ff !important;
    border-color: #1890ff !important;
    color: #fff !important;
  }
}



/* 电影简介区域 */
.introductionSection {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.introductionText {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

/* 电影截图区域 */
.screenshotsSection {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.screenshotMain {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mainScreenshot {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.screenshotThumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshotThumbnails::-webkit-scrollbar {
  height: 6px;
}

.screenshotThumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.screenshotThumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.screenshotThumbnails::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.thumbnailItem {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  &.activeThumbnail {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }
}

.thumbnailImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 下载链接区域 */
.downloadSection {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.downloadHeader {
  margin-bottom: 24px;
}

.downloadLinksList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 下载链接项 - 美观设计 */
.downloadLinkItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f6ffed, #e6f7ff);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 20px;
  transition: none;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #52c41a;
  }

  // &:hover {
  //   transform: translateY(-2px);
  //   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  //   border-color: #1890ff;
  // }
}

.linkInfo {
  flex: 1;
  padding-left: 12px;
}

.linkTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.qualityBadge {
  background-color: #52c41a;
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.downloadLink {
  color: #1890ff;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;

  // &:hover {
  //   color: #40a9ff;
  //   text-decoration: underline;
  // }
}

.linkDetails {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.detailRow {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.linkDownloadButton {
  background-color: #52c41a;
  border-color: #52c41a;
  transition: none;
  white-space: nowrap;
  
  &:hover {
    background-color: #52c41a !important;
    border-color: #52c41a !important;
    color: #fff !important;
  }
}

/* 下载弹窗 */
.downloadModalContent {
  max-height: 500px;
  overflow-y: auto;
}

.downloadModalContent .ant-list-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    border-bottom: none;
  }
}

.downloadModalContent .ant-list-item-meta {
  align-items: center;
}

.downloadModalContent .ant-list-item-actions {
  margin-left: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .movieHeader {
    padding: 24px;
  }

  .titleSection {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ratingSection {
    align-self: flex-start;
  }

  .actionButtons {
    flex-direction: column;
  }

  .actionButtons .ant-btn {
    width: 100%;
  }

  .downloadLinkItem {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .linkDownloadButton {
    width: 100%;
  }

  .screenshotsSection,
  .introductionSection,
  .downloadSection {
    padding: 24px;
  }

  .content {
    padding: 16px;
    padding-top: 76px;
  }
}